//
//  UserItemCell.m
//  UserItem
//
//  Created by Yizhong on 17/6/20.
//  Copyright © 2017年 Yizhong. All rights reserved.
//

#import "UserItemCell.h"
#import "Model.h"

#define kScreen_Width [UIScreen mainScreen].bounds.size.width
#define kScreen_Height [UIScreen mainScreen].bounds.size.height
@interface UserItemCell ()

@end

@implementation
UserItemCell

//init
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self addSubview:self.user_image];
        [self addSubview:self.user_level];
    }
    return self;
}
// getModel
- (void)getUserItemImageModel:(UserModel *)model{
    
}

//lazy
- (UIImageView *)user_image{
    if (!_user_image) {
        _user_image = [[UIImageView alloc]initWithFrame:CGRectMake(0, 50, 150, 200)];
       // _user_image.layer.masksToBounds = YES;
        //_user_image.layer.cornerRadius = 20;
//        _user_image.backgroundColor = [UIColor redColor];
//        ResultModel *mode = [ResultModel new];
//        _user_image.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:mode.imageUrl]]];
    }
    return _user_image;
}
- (UIImageView *)user_level{
    if (!_user_level) {
        _user_level = [[UIImageView alloc]initWithFrame:CGRectMake(20, self.user_image.frame.size.height - 7, 20, 10)];
        _user_level.image = [UIImage imageNamed:@"level"];
        _user_level.layer.masksToBounds = YES;
        _user_level.layer.cornerRadius = 3;
    }
    return _user_level;
}

@end
